<?php
	include_once "loainguoidung_db.php";
	
	class loainguoidung_bs
	{
		//--------------Field---------------
		private $MaLoaiNguoiDung = -1;
		public function SetMaLoaiNguoiDung($MaLoaiNguoiDung)   { $this->MaLoaiNguoiDung = $MaLoaiNguoiDung;   }
		public function GetMaLoaiNguoiDung()                   { return $this->MaLoaiNguoiDung;               }
		
		private $TenLoaiNguoiDung = "";
		public function SetTenLoaiNguoiDung($TenLoaiNguoiDung) { $this->TenLoaiNguoiDung = $TenLoaiNguoiDung; }
		public function GetTenLoaiNguoiDung()                  { return $this->TenLoaiNguoiDung;              }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new loainguoidung_db();
			return $data->Them($this->MaLoaiNguoiDung, $this->TenLoaiNguoiDung);
		}
		
		public function CapNhat()
		{
			$data = new loainguoidung_db();
			return $data->CapNhat($this->MaLoaiNguoiDung, $this->TenLoaiNguoiDung);
		}
		
		public function Xoa()
		{
			$data = new loainguoidung_db();
			return $data->Xoa($this->MaLoaiNguoiDung);
		}
		
		public function LayDanhSach()
		{
			$data = new loainguoidung_db();
			return $data->LayDanhSach($this->MaLoaiNguoiDung);
		}
	}
?>